<?php


class dbacurrency {
 
  function dbacurrency (&$dba){
    $this->dba = &$dba;
  }

  function add ($dpstr,$short,$factor){
    return $this->dba->query("insert into ".$this->dba->tableforwarder."_shopCurrency (display_str,short,factor) values ('$dpstr','$short','$factor');");
  }

  function del ($id){
    return $this->dba->query("delete from ".$this->dba->tableforwarder."_shopCurrency where id='$id';");
  }

 function update ($id,$dpstr,$short,$factor){
   return $this->dba->query("update ".$this->dba->tableforwarder."_shopCurrency set display_str='$dpstr',short='$short',factor='$factor' where id=$id;");
 }

 function get ($id){
   $this->dba->query("select * from ".$this->dba->tableforwarder."_shopCurrency where id='$id';");
   return $this->dba->fetch_row_array();
 }

 function getall (){
   $this->dba->query("select * from ".$this->dba->tableforwarder."_shopCurrency order by short;");
   return $this->dba->fetch_rows_array();
 }

 function getlist (){
   $this->dba->query("select * from ".$this->dba->tableforwarder."_shopCurrDesc order by short;");
   return $this->dba->fetch_rows_array();
 }


}

?>
